package com.ruoyi.bus.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 点评对象 wit_comment
 * 
 * @author caiyanshan
 * @date 2021-04-14
 */
public class WitComment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 点评ID */
    private Long commentId;

    /** 评论内容 */
    @Excel(name = "评论内容")
    @NotEmpty(message = "评论内容不能为空")
    private String content;

    /** 评分 */
    @Excel(name = "评分")
    @NotEmpty(message = "评分不能为空")
    private String score;

    /** 整体感觉 */
    @Excel(name = "整体感觉")
    private String feel;

    /** 预约ID */
    @Excel(name = "预约ID")
    @NotNull(message = "预约ID不能为空")
    private Long appointId;

    /** 点评人 */
    @Excel(name = "点评人")
    private Long userId;

    public void setCommentId(Long commentId) 
    {
        this.commentId = commentId;
    }

    public Long getCommentId() 
    {
        return commentId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setScore(String score) 
    {
        this.score = score;
    }

    public String getScore() 
    {
        return score;
    }
    public void setFeel(String feel) 
    {
        this.feel = feel;
    }

    public String getFeel() 
    {
        return feel;
    }
    public void setAppointId(Long appointId) 
    {
        this.appointId = appointId;
    }

    public Long getAppointId() 
    {
        return appointId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("commentId", getCommentId())
            .append("content", getContent())
            .append("score", getScore())
            .append("feel", getFeel())
            .append("appointId", getAppointId())
            .append("userId", getUserId())
            .append("createTime", getCreateTime())
            .toString();
    }
}
